package com.icode.core.model.user;

/**
 * Created with IntelliJ IDEA.
 * User: ZhongGang
 * Date: 15-1-7
 * Time: 下午10:41
 */
public enum Privilege {

    USER_MANAGEMENT("用户管理"),

    DEPARTMENT_MANAGEMENT("部门管理"),

    ROLE_MANAGEMENT("角色管理");

    private String label;

    private Privilege(String label) {
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public String getValue() {
        return name();
    }

    public String getGrantedAuthority() {
        return "ROLE_" + name();
    }
}
